Ext.define('Usws.view.videoType.VideoTypeEdit', {
    extend: 'Ext.window.Window',
    xtype: 'VideoType-Edit',
    title: '编辑视频类别信息',
    layout: 'fit',
    autoShow: true,
    modal: true,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                padding: '10px',
                border: 0,
                items: [
                     { xtype: 'hiddenfield', name:'baseDict.uid', id: 'uid'}
                    ,{ xtype: 'hiddenfield', name:'baseDict.domain', id: 'domain', value:'VIDEO_TYPE'}
                    ,{ xtype: 'hiddenfield', name:'baseDict.sepId', id: 'sepId'}
                    ,{ xtype: 'hiddenfield', name:'baseDict.seqNum', id: 'seqNum'}
					,{ xtype: 'textfield', name:'baseDict.code', id: 'code', fieldLabel: '代码',allowBlank:false}
					,{ xtype: 'textfield', name:'baseDict.name', id: 'name', fieldLabel: '名称',allowBlank:false}
					,{
	                	   xtype: 'fieldcontainer',
				           fieldLabel: '关联类别',
				           layout: 'hbox',
				           items:[
				                  {
				                	xtype: 'treepanel',
				                	store: 'VideoTypeCat',
				                	useArrows: true,
			                	    //rootVisible: false,
			                	    titleCollapse: true,
			                	    emptyText:'暂无视频类别',
			                	    width: 250,
			                	    height: 160,
			                	    id:'videoTypeCatTree'
				                  }
				            ]
	                   }
					
                ]
            }
        ];

        this.buttons = [
            {
                text: '确定',
                action: 'save'
            },
            {
                text: '取消',
                scope: this,
                handler: this.close
            }
        ];
        
        this.callParent(arguments);
    }
});